package com.wenbo.wenbo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 微信用户
 * @author ywb
 * @date 2021年12月23日 11:18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_info")
public class UserInfo extends Model<UserInfo> {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("open_id")
    private String openId;

    @TableField("nick_name")
    private String nickName;

    @TableField("gender")
    private Integer gender;

    @TableField("language")
    private String language;

    @TableField("country")
    private String country;

    @TableField("province")
    private String province;

    @TableField("city")
    private String city;

    @TableField("avatar_url")
    private String avatarUrl;

    @TableField("update_time")
    private Date updateTime;
    @TableField("create_time")
    private Date createTime;

}
